﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000275 RID: 629
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueNousMainStoryInfo : IMessage<ChessRogueNousMainStoryInfo>, IMessage, IEquatable<ChessRogueNousMainStoryInfo>, IDeepCloneable<ChessRogueNousMainStoryInfo>, IBufferMessage
	{
		// Token: 0x17000843 RID: 2115
		// (get) Token: 0x06001C4F RID: 7247 RVA: 0x00051307 File Offset: 0x0004F507
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueNousMainStoryInfo> Parser
		{
			get
			{
				return ChessRogueNousMainStoryInfo._parser;
			}
		}

		// Token: 0x17000844 RID: 2116
		// (get) Token: 0x06001C50 RID: 7248 RVA: 0x0005130E File Offset: 0x0004F50E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueNousMainStoryInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000845 RID: 2117
		// (get) Token: 0x06001C51 RID: 7249 RVA: 0x00051320 File Offset: 0x0004F520
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueNousMainStoryInfo.Descriptor;
			}
		}

		// Token: 0x06001C52 RID: 7250 RVA: 0x00051327 File Offset: 0x0004F527
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousMainStoryInfo()
		{
		}

		// Token: 0x06001C53 RID: 7251 RVA: 0x0005132F File Offset: 0x0004F52F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousMainStoryInfo(ChessRogueNousMainStoryInfo other) : this()
		{
			this.chessRogueMainStoryId_ = other.chessRogueMainStoryId_;
			this.status_ = other.status_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001C54 RID: 7252 RVA: 0x00051360 File Offset: 0x0004F560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousMainStoryInfo Clone()
		{
			return new ChessRogueNousMainStoryInfo(this);
		}

		// Token: 0x17000846 RID: 2118
		// (get) Token: 0x06001C55 RID: 7253 RVA: 0x00051368 File Offset: 0x0004F568
		// (set) Token: 0x06001C56 RID: 7254 RVA: 0x00051370 File Offset: 0x0004F570
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChessRogueMainStoryId
		{
			get
			{
				return this.chessRogueMainStoryId_;
			}
			set
			{
				this.chessRogueMainStoryId_ = value;
			}
		}

		// Token: 0x17000847 RID: 2119
		// (get) Token: 0x06001C57 RID: 7255 RVA: 0x00051379 File Offset: 0x0004F579
		// (set) Token: 0x06001C58 RID: 7256 RVA: 0x00051381 File Offset: 0x0004F581
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousMainStoryStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x06001C59 RID: 7257 RVA: 0x0005138A File Offset: 0x0004F58A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueNousMainStoryInfo);
		}

		// Token: 0x06001C5A RID: 7258 RVA: 0x00051398 File Offset: 0x0004F598
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueNousMainStoryInfo other)
		{
			return other != null && (other == this || (this.ChessRogueMainStoryId == other.ChessRogueMainStoryId && this.Status == other.Status && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001C5B RID: 7259 RVA: 0x000513D8 File Offset: 0x0004F5D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ChessRogueMainStoryId != 0U)
			{
				num ^= this.ChessRogueMainStoryId.GetHashCode();
			}
			if (this.Status != ChessRogueNousMainStoryStatus.None)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001C5C RID: 7260 RVA: 0x00051436 File Offset: 0x0004F636
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001C5D RID: 7261 RVA: 0x0005143E File Offset: 0x0004F63E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001C5E RID: 7262 RVA: 0x00051448 File Offset: 0x0004F648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ChessRogueMainStoryId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.ChessRogueMainStoryId);
			}
			if (this.Status != ChessRogueNousMainStoryStatus.None)
			{
				output.WriteRawTag(104);
				output.WriteEnum((int)this.Status);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001C5F RID: 7263 RVA: 0x000514A0 File Offset: 0x0004F6A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ChessRogueMainStoryId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChessRogueMainStoryId);
			}
			if (this.Status != ChessRogueNousMainStoryStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001C60 RID: 7264 RVA: 0x000514F8 File Offset: 0x0004F6F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueNousMainStoryInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ChessRogueMainStoryId != 0U)
			{
				this.ChessRogueMainStoryId = other.ChessRogueMainStoryId;
			}
			if (other.Status != ChessRogueNousMainStoryStatus.None)
			{
				this.Status = other.Status;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001C61 RID: 7265 RVA: 0x00051548 File Offset: 0x0004F748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001C62 RID: 7266 RVA: 0x00051554 File Offset: 0x0004F754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Status = (ChessRogueNousMainStoryStatus)input.ReadEnum();
					}
				}
				else
				{
					this.ChessRogueMainStoryId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000BC2 RID: 3010
		private static readonly MessageParser<ChessRogueNousMainStoryInfo> _parser = new MessageParser<ChessRogueNousMainStoryInfo>(() => new ChessRogueNousMainStoryInfo());

		// Token: 0x04000BC3 RID: 3011
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000BC4 RID: 3012
		public const int ChessRogueMainStoryIdFieldNumber = 1;

		// Token: 0x04000BC5 RID: 3013
		private uint chessRogueMainStoryId_;

		// Token: 0x04000BC6 RID: 3014
		public const int StatusFieldNumber = 13;

		// Token: 0x04000BC7 RID: 3015
		private ChessRogueNousMainStoryStatus status_;
	}
}
